#pragma once
#include "Material.h"

class MatSingleColor: public Material{
protected:
	static const char* mVertexShader;
	static const char* mFragmentShader;

	GLuint mProgram;
	GLuint maPositionHandle;
	GLuint maColorHandle;
	GLuint muMVPMatrixHandle;

public:
	static const int VERTICES_STRIDE = 7 * sizeof(GLfloat);

	//MatSingleColor();
	//virtual ~MatSingleColor();

	virtual void initialize_once();
	virtual void initialize_common();
	virtual void initialize_specific(const GLfloat* buffer);
	virtual void update(const float& time);
	virtual GLuint get_vertex_stride() const;
};
